a = 1
def test1():
    global a
    a = 100
    print(a)

def test2():
    a = 300
    print(a)

test1()
test2()

print(a)